# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=guetzli
pkgver=0_git20191025 # Last tagged release on Mar 21, 2017, 76 commits behind
_commit=214f2bb42abf5a577c079d00add5d6cc470620d3
pkgrel=1
pkgdesc="perceptual JPEG encoder that aims for excellent compression density at high visual quality"
url="https://github.com/google/guetzli"
license="Apache-2.0"
arch="all"
options="!check" # no test suite
makedepends="libpng-dev"
subpackages="$pkgname-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/google/guetzli/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make all
}

package() {
	cd bin/Release
	install -Dm755 guetzli -t $pkgdir/usr/bin
	install -Dm644 libguetzli_static.a -t $pkgdir/usr/lib
}

sha512sums="841cb14df4d27d3227e0ef8ecff6bd8a222d791abfc8fb593bf68996ed8861a9cc483f1a9b140023a247a5b1a350197601ca75a990507aaafa1b2dd03f8577d0  guetzli-214f2bb42abf5a577c079d00add5d6cc470620d3.tar.gz"
